package com.wyz.saas.common.gnss

import android.location.Location
import android.location.LocationListener
import com.wyz.saas.common.gnss.AtomLocationController

interface AtomLocationListener : LocationListener {

    fun onLocationChanged(
        lastLocation: Location?,
        currLocation: Location,
        provider: String,
        control: AtomLocationController? = null
    )

    override fun onLocationChanged(location: Location) {
        onLocationChanged(null, location, location.provider)
    }
}